package com.headwind.logistics.dispatchNetwork.service.inter;

import com.headwind.logistics.common.pojo.BaseNetSite;
import com.headwind.logistics.common.pojo.Employee;
import com.headwind.logistics.common.util.RestResult;
import com.headwind.logistics.dispatchNetwork.dto.BaseNetSiteDto;
import com.headwind.logistics.dispatchNetwork.dto.SiteArerTreeDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author HUA
 * @Date 2020/7/18 15:14
 * @Version 1.0
 * @DESCRIPTION 网点服务接口层
 */
public interface NetworkSiteInter {
    //查看所有网点
    public List<BaseNetSite> querySiteAll(String siteName, Integer page, Integer rows);
    //新增网点
    public int addSite(BaseNetSiteDto siteAndApplyDto);
    //树形组件(行政区域)
    public List<SiteArerTreeDto> getDate(Integer id);
    //查询所有员工
    public List<Employee> queryAllEmployee();
    //删除网点
    public int deleteSite(Integer siteId);
    //根据id查询网点
    public BaseNetSite querySiteById(Integer siteId);
    //新增审核网点
    public int addApply(BaseNetSiteDto baseNetSiteDto);
    //根据名字查询行政主键
    public Long queryApplyByname( String name);
}
